import request from '@/http/request.js'

// 查询列表
export function queryArticleList(data){
    return request({
        url:'/article/queryArticleList',
        method:'post',
        data
    })
}

// 新增文章
export function insertArticle(data){
    return request({
        url:'/article/insertArticle',
        method:'post',
        data
    })
}

//详情
export function queryDetail(articleId){
    return request({
        url:'/article/queryDetail?articleId='+articleId,
        method:'get',
    })
}

//修改
export function editDetail(data){
    return request({
        url:'/article/editDetail',
        method:'post',
        data
    })
}

//删除
export function deleteArticle(articleId){
    return request({
        url:'/api/article/deleteArticle',
        method:'get',
        params:{articleId}
    })
}